package com.zy.edu.bean;

import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 
 * </p>
 *
 * @author HuangHaiShui
 * @since 2021-07-13
 */
@Data
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;
    private String name;
    private String flag;

    public final static Map<Integer,String> roleFlag = new HashMap();
    static {
        roleFlag.put(1, "area");
        roleFlag.put(2, "school");
        roleFlag.put(3, "teacher");
        roleFlag.put(4, "student");
        roleFlag.put(5, "super");
    }

    //区管
    public final static Integer AREA = 1;
    //校管
    public final static Integer SCHOOL = 2;
    //老师
    public final static Integer TEACHER = 3;
    //学生
    public final static Integer STUDENT = 4;
    //超管
    public final static Integer SUPER = 5;

}
